<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<WASM.WebSite.Logic.TableGenericEntity>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Rows
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		Rows</h2>
	<table>
		<tr>
			<th>
			</th>
			<th>
				PartitionKey
			</th>
			<th>
				RowKey
			</th>
		</tr>
		<% foreach (var item in Model)
		 { %>
		<tr>
			<td>
				<%= Html.ActionLink("Open", "Entity", new { storageId = ViewData["storageId"], storageBoxId = ViewData["storageBoxId"], partitionKey = item.PartitionKey, rowKey = item.RowKey})%>
				|
				<%= Html.ActionLink("Delete", "EntityDelete", new { storageId = ViewData["storageId"], storageBoxId = ViewData["storageBoxId"], partitionKey = item.PartitionKey, rowKey = item.RowKey })%>
			</td>
			<td>
				<%= Html.Encode(item.PartitionKey) %>
			</td>
			<td>
				<%= Html.Encode(item.RowKey) %>
			</td>
		</tr>
		<% } %>
	</table>
	<p>
		<%= Html.ActionLink("Create New", "EntityCreate", new { storageId = ViewData["storageId"], storageBoxId = ViewData["storageBoxId"] })%>
	</p>
</asp:Content>
